home *** CD-ROM | disk | FTP | other *** search
/ Nautilus 1992 July / Nautilus-3-8 / Nautilus-3-8.bin / Tools & Utilities / Techy Stuff / Doco ƒ / CSMP ƒ / CSMP-V1-009.TXT < prev    next >
Encoding:
Text File  |  1992-06-03  |  51.8 KB  |  1,621 lines

  1. C.S.M.P. Digest             Sun, 08 Mar 92       Volume 1 : Issue 9
  2.  
  3. Today's Topics:
  4.  
  5.      Think C looping "bug"?
  6.     Memory question: how many handles are alloced?
  7.     q: why is my main() in code seg 2 when using think c?
  8.     possible virus in Think Back.
  9.     How do you insert text into a TTEView?
  10.     MacApp 2.0 to 3.0 Docs
  11.     Think C and register parameters
  12.     Apple Event suite for ARA ?
  13.     PBCatSearch to list folder ?
  14.     IcePick & ObjectMaster
  15.     emacs like editor?
  16.     Think Pascal / Quadra
  17.     SOLUTION- CDataFile ReadSome problem HELP!
  18.     Help needed with message passing between applications!!!
  19.  
  20.  
  21. The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.
  22.  
  23. These digests are available (by using FTP, account anonymous, your email
  24. address as password) in the pub/mac directory on ftp.cs.uoregon.edu.
  25. This is also the home of the comp.sys.mac.programmer Frequently Asked
  26. Questions list.
  27.  
  28. The articles in these digests are taken directly from comp.sys.mac.programmer.
  29. They are not edited; all articles included in this digest are in their original
  30. posted form.  The only articles that are -not- included in these digests are
  31. those which didn't receive any replies (except those that give information
  32. rather than ask a question).  All replies to each article are concatenated
  33. onto the original article in the order in which they were received.  Article
  34. threads are not added to the digests until the last article added to the
  35. thread is at least one month old (this is to ensure that the thread is dead
  36. before adding it to the digests).
  37.  
  38. Send administrative mail to mkelly@cs.uoregon.edu.
  39.  
  40. -------------------------------------------------------
  41.  
  42. From: srobyns@hpcupt3.cup.hp.com (Serge Robyns)
  43. Subject:  Think C looping "bug"?
  44. Date: 11 Jan 92 00:24:50 GMT
  45. Organization: Hewlett Packard, Cupertino
  46.  
  47. >In article ... johnc@waikato.ac.nz writes:
  48. >
  49. >
  50.    >/* generate bug */    
  51. >       for (i=0; i < 5; a[i] = i++);
  52. >
  53. >    [Gobs of stuff deleted]
  54. >
  55. >   /* no bug */
  56. >       for (i=0; i < 5; i++)
  57. >           a[i] = i;
  58. >
  59. >    [More deletions]
  60. >
  61. >
  62. >Welcome to C!  The language standard does not define the order of
  63. >evaluation of statements.  Therefore, the code:
  64. >
  65. >    a[i] = i++;
  66. >
  67. >can legally and ANSI-conformally be equivalent to either one of the
  68. >following:
  69. >
  70. >ONE:    a[i] = i;            TWO:    i++;
  71. >    i++;                    a[i-1] = i;
  72. >
  73. >therefore you cannot RELIABLY AND PORTABLY rely on the order of
  74. >evaluation of the left-hand-side or the right-hand-side of an
  75. >assignment statement.  The same rule also applies to the order of
  76. >evaluation of arguments to a function.  For example, 
  77. >
  78. >
  79. >i = 0;
  80. >f(i++,i++);
  81. >
  82. >could result in either of the calls f(0,1) or f(1,0) depending on the
  83. >implementation.
  84. >
  85. >Cheers.
  86. >----------
  87.  
  88. The C Programming Language is very clear about post and pre incrementing!
  89.  
  90. so    a = i++; -> a = 1; i++;
  91. and   a = ++i; -> ++i /* or i++ */ ; a = i;
  92.  
  93. In the first case we will first use the value of i and then increment it.
  94. In the second case we will first increment the value of i and then use it.
  95.  
  96. Any other implementation is not following the standard or is a bug in the       compiler.
  97.  
  98. Hope this gives some help, but it doesn't solve your problem.
  99.  
  100.  
  101.  
  102. - -------------------------
  103.  
  104. From: jverdega@cae.wisc.edu (Jeffrey Verdegan)
  105. Subject:  Think C looping "bug"?
  106. Date: 21 Jan 92 21:59:28 GMT
  107. Organization: College of Engineering, Univ. of Wisconsin-Madison
  108.  
  109. In article <68670001@hpcupt3.cup.hp.com> srobyns@hpcupt3.cup.hp.com (Serge Robyns) writes:
  110. >>In article ... johnc@waikato.ac.nz writes:
  111. >>
  112. >>
  113. >   >/* generate bug */    
  114. >>       for (i=0; i < 5; a[i] = i++);
  115. >>
  116. >>    [Gobs of stuff deleted]
  117. >>
  118. >>   /* no bug */
  119. >>       for (i=0; i < 5; i++)
  120. >>           a[i] = i;
  121. >>
  122. >>    [More deletions]
  123. >>
  124. >>
  125. >>Welcome to C!  The language standard does not define the order of
  126. >>evaluation of statements.  Therefore, the code:
  127. >>
  128. >>    a[i] = i++;
  129. >>
  130. >>can legally and ANSI-conformally be equivalent to either one of the
  131. >>following:
  132. >>
  133. >>ONE:    a[i] = i;            TWO:    i++;
  134. >>    i++;                    a[i-1] = i;
  135. >>
  136. >>therefore you cannot RELIABLY AND PORTABLY rely on the order of
  137. >>evaluation of the left-hand-side or the right-hand-side of an
  138. >>assignment statement.  The same rule also applies to the order of
  139. >>evaluation of arguments to a function.  For example, 
  140. >>
  141. >>
  142. >>i = 0;
  143. >>f(i++,i++);
  144. >>
  145. >>could result in either of the calls f(0,1) or f(1,0) depending on the
  146. >>implementation.
  147. >>
  148. >>Cheers.
  149. >>----------
  150. >
  151. >The C Programming Language is very clear about post and pre incrementing!
  152. >
  153. >so    a = i++; -> a = 1; i++;
  154. >and   a = ++i; -> ++i /* or i++ */ ; a = i;
  155. >
  156. >In the first case we will first use the value of i and then increment it.
  157. >In the second case we will first increment the value of i and then use it.
  158. >
  159. >Any other implementation is not following the standard or is a bug in the       compiler.
  160. >
  161. >Hope this gives some help, but it doesn't solve your problem.
  162.  
  163. While C may be clear on the fact that i++ is a post-increment and ++i is a 
  164. pre-increment, it is emphatically not clear on the order in which it evaluates
  165. the two i's in either a[i] = i++; or f(i++, i++);.  That is, just because the
  166. i inside the array brackets appears first in the source code, don't expect that
  167. it will be evaluated before the i++ on the right side of the equal sign.  Hence,
  168. whether that second i is ++i or i++, if the compiler chooses to evaluate it
  169. before the array index (which it may or may not do), i will be incremented 
  170. before it is evaluated to determine the array index... er something like that.
  171. The main point is that satements like a[i] = i++; and f(i++, i++); where the
  172. variable you are ++'ing is used more than once, are basically a bad idea.
  173.  
  174. Later,
  175. Jeff
  176.  
  177.  
  178. - --------
  179.  
  180. Jeff Verdegan
  181. University of Wisconsin-Madison
  182. Computer-Aided Engineering Center
  183. jjv@caestaff.engr.wisc.edu
  184. (608) 263-1875
  185.  
  186.  
  187.  
  188. - -------------------------
  189.  
  190. From: minow@ranger.enet.dec.com (Martin Minow)
  191. Subject:  Think C looping "bug"?
  192. Date: 23 Jan 92 03:06:16 GMT
  193. Organization: Digital Equipment Corporation
  194.  
  195.  
  196. re: the problem with a[i] = i++ in Ansi-C compilers.
  197.  
  198. The Ansi Standard very clearly describes "sequence points" -- points in
  199. a program stream when all values must be defined. The assignment operator
  200. is *NOT* a sequence point, thus the result of statements such as
  201.     a[i] = i++; i = i++; i = ++i;
  202. or any other permutation is not defined by ANSI and compilers are completely
  203. free to optomize the order of evaluation in any order.  This is made
  204. extremely clear in the standard.
  205.  
  206. A statement such as a[i] = i++ can be written as "a[i] = i, i++" or
  207. "i++, a[i] = i" or whatever with no loss of performance.
  208.  
  209. Martin Minow
  210. minow@ranger.enet.dec.com
  211.  
  212.  
  213.  
  214. - -------------------------
  215.  
  216. From: biesty@ide.com (Bill Biesty)
  217. Subject: Comma Operator (was Re: Think C looping "bug"?)
  218. Date: 28 Jan 92 01:17:26 GMT
  219. Organization: IDE, San Francisco
  220.  
  221. In article <2005@sousa.ltn.dec.com> minow@ranger.enet.dec.com (Martin Minow) writes:
  222. >A statement such as a[i] = i++ can be written as "a[i] = i, i++" or
  223. >"i++, a[i] = i" or whatever with no loss of performance.
  224.  
  225. I rarely use the comma operator outside of declarations.
  226. What are the (dis)advantages of using a comma here instead
  227. of a semicolon?
  228.  
  229. Bill Biesty
  230.  
  231.  
  232.  
  233. ---------------------------
  234.  
  235. From: steve@oceania.com (Steve Dakin)
  236. Subject: Memory question: how many handles are alloced?
  237. Date: 21 Jan 92 17:23:48 GMT
  238. Organization: Oceania Health Care Systems
  239.  
  240.  
  241.  
  242. I am writing a program for the Mac that allocates lots of
  243. blobs of memory.  I would like to manage the allocation as
  244. much as possible.  Most the memory is allocated as Handles
  245. using NewHandle().  I would like to be able to examine, at
  246. any point in the execution of the program, how many handles
  247. I have allocated.  It would also be nice to know their location
  248. in the heap, but this is secondary to simply knowing how many
  249. have been allocated.  Does anybody know a utility that would
  250. tell me this, or what I might need to do to code a routine to
  251. give me the information. Any and all help would be greatly
  252. appreciated.
  253.  
  254. Anybody know if TMON Pro has a command that would give me the
  255. desired information?  I thought TMON Pro was supposed to do
  256. everything, but upon extensive searches through both manuals,
  257. I have turned up nothing.
  258.  
  259. Thanks again,
  260.  
  261. Steve
  262.  
  263. -- 
  264. +------------------------------------------------------------------+
  265.       Steve              steve@oceania.com  or jester@oceania.com
  266.             Dakin                      (NeXT mail)
  267.  
  268.  
  269.  
  270. - -------------------------
  271.  
  272. From: e-sink@uiuc.edu (Eric W. Sink)
  273. Subject:  Memory question: how many handles are alloced?
  274. Date: 21 Jan 92 20:30:25 GMT
  275. Organization: University of Illinois at Urbana-Champaign
  276.  
  277. In <1992Jan21.172348.10131@oceania.com> steve@oceania.com (Steve Dakin) writes:
  278.  
  279.  
  280. >I am writing a program for the Mac that allocates lots of
  281. >blobs of memory.  I would like to manage the allocation as
  282. >much as possible.  Most the memory is allocated as Handles
  283. >using NewHandle().  I would like to be able to examine, at
  284. >any point in the execution of the program, how many handles
  285. >I have allocated.  It would also be nice to know their location
  286. >in the heap, but this is secondary to simply knowing how many
  287. >have been allocated.  Does anybody know a utility that would
  288. >tell me this, or what I might need to do to code a routine to
  289. >give me the information. Any and all help would be greatly
  290. >appreciated.
  291.  
  292. I use MacsBug.  The HT command (Heap Totals) tells you how many
  293. handles you have allocated, and what the total quantity of memory
  294. allocate is.  The HC command does a Heap Check, telling you if it
  295. is corrupt.  The HD command (Heap Display) will show you the location
  296. of every block in the heap, or only certain kinds of blocks, if you
  297. prefer.
  298.  
  299. >Anybody know if TMON Pro has a command that would give me the
  300. >desired information?  I thought TMON Pro was supposed to do
  301. >everything, but upon extensive searches through both manuals,
  302. >I have turned up nothing.
  303.  
  304. I've never used TMON Pro, but I've heard good things about it.
  305. I agree that TMON Pro certainly has some sort of similar
  306. functionality, somewhere.
  307.  
  308. -- 
  309. Eric W. Sink,  Spatial Analysis and Systems Team
  310. USACERL, P.O. Box 9005, Champaign, IL 61826-9005
  311. 1-800-USA-CERL x449,   e-sink@uiuc.edu
  312.  
  313.  
  314.  
  315. ---------------------------
  316.  
  317. From: andre@speedy.cs.pitt.edu (Andre "Just A Plumber" Srinivasan)
  318. Subject: q: why is my main() in code seg 2 when using think c?
  319. Date: 21 Jan 92 21:12:18 GMT
  320. Organization: Acme Plumbing Services And Exploding Cigars
  321.  
  322.  
  323. i was reading tn #53 (more masters revisited) which was indicating
  324. that i should call moremasters in code seg 1.  afterward i was poking
  325. around in memory trying to figure out an optimal number of master
  326. pointer blocks that i would need and noticed that my main is not in
  327. seg 1, but in seg 2.  after further exploration i noticed that there
  328. is a code segment 1 that doesn't have anything i recognize.
  329.  
  330. can someone tell me about that seg 1 - what it does, how think c code
  331. relies on it, etc.
  332.  
  333. as far as the moremaster call is concerned, it looks like i'm ok to
  334. call it from seg 2 and still avoid that memory fragmentation.  right?
  335.  
  336. thanks.
  337.  
  338.  
  339.  
  340.                                 -andre.
  341. --
  342. Andre Srinivasan  :
  343. 734 LRDC          :         This Space Intentionally Left Blank
  344. U. of Pittsburgh  :
  345. andre@cs.pitt.edu :
  346.  
  347.  
  348.  
  349. - -------------------------
  350.  
  351. From: phils@chaos.cs.brandeis.edu (Phil Shapiro)
  352. Subject:  q: why is my main() in code seg 2 when using think c?
  353. Date: 22 Jan 92 03:20:32 GMT
  354. Organization: Symantec Corp.
  355.  
  356. >>>>> On 21 Jan 92 21:12:18 GMT, andre@speedy.cs.pitt.edu (Andre "Just A Plumber" Srinivasan) said:
  357.  
  358.  > can someone tell me about that seg 1 - what it does, how think c
  359.  > code relies on it, etc.
  360.  
  361. In THINK C, CODE segment 1 contains the segment loader code that THINK
  362. C uses, along with some intrinsic utility routines. For example, the
  363. code that does long integer math resides there, along with code that's
  364. used for some switch() statements. You should never unload this
  365. segment unless you really know what you're doing.
  366.  
  367.  > as far as the moremaster call is concerned, it looks like i'm ok to
  368.  > call it from seg 2 and still avoid that memory fragmentation.
  369.  > right?
  370.  
  371. Right. CODE segement 2 is also never unloaded, since it contains
  372. main().
  373.  
  374.     -phil
  375. --
  376.    Phil Shapiro                           Technical Support Analyst
  377.    Language Products Group                     Symantec Corporation
  378.         Internet: phils@chaos.cs.brandeis.edu
  379.  
  380.  
  381.  
  382. - -------------------------
  383.  
  384. From: siegel@world.std.com (Rich Siegel)
  385. Subject:  q: why is my main() in code seg 2 when using think c?
  386. Date: 22 Jan 92 04:54:15 GMT
  387. Organization: Symantec Language Products Group
  388.  
  389. In article <ANDRE.92Jan21161218@speedy.cs.pitt.edu> andre@speedy.cs.pitt.edu (Andre "Just A Plumber" Srinivasan) writes:
  390. >
  391. >i was reading tn #53 (more masters revisited) which was indicating
  392. >that i should call moremasters in code seg 1.  afterward i was poking
  393. >around in memory trying to figure out an optimal number of master
  394. >pointer blocks that i would need and noticed that my main is not in
  395. >seg 1, but in seg 2.  after further exploration i noticed that there
  396. >is a code segment 1 that doesn't have anything i recognize.
  397. >
  398. >can someone tell me about that seg 1 - what it does, how think c code
  399. >relies on it, etc.
  400.  
  401.     CODE 1 in THINK C applications is used for the THINK C application
  402. loader, which does things such as runtime code and data relocations. In this
  403. case, calling MoreMasters() from your main() is entirely fine and appropriate.
  404.  
  405. R.
  406.  
  407.  
  408.  
  409. -- 
  410. - ---------------------------------------------------------------------
  411. Rich Siegel                              Internet: siegel@world.std.com
  412. Senior Software Engineer                 Applelink: SIEGEL
  413. Symantec Languages Group
  414.  
  415.  
  416.  
  417. ---------------------------
  418.  
  419. From: braun-eric@CS.YALE.EDU (Eric E. Braun)
  420. Subject: possible virus in Think Back.
  421. Date: 21 Jan 92 21:23:57 GMT
  422. Organization: Yale University Computer Science Dept., New Haven, CT 06520-2158
  423.  
  424. I have just downloaded Think Back from comp.binaries.mac (which is
  425. really nifty for all you Think C folks out there, allows compilation
  426. in the background) But then, unexpectedly I got a never heard before
  427. sound: whoooeeep!  It occured as the result of no discernable action
  428. as if it went off after a timeout.  Has anybody else experienced this?
  429. (Otherwise my machine seems to be operating fine and SAM doesn't
  430. detect any problems.)  I also downloaded the ToDo desk accessory so it
  431. might also be at fault...
  432.  
  433.  
  434.  
  435. - -------------------------
  436.  
  437. From: braun-eric@CS.YALE.EDU (Eric E. Braun)
  438. Subject:  possible virus in Think Back.
  439. Date: 22 Jan 92 16:59:14 GMT
  440. Organization: Yale University Computer Science Dept., New Haven, CT 06520-2158
  441.  
  442. Ok, my fault, the whooooeeeeep I was hearing was Easy Access kicking
  443. in.  Somehow I accidentally hit the shift key 5 times just after I had
  444. installed Think Back, so the bells went off in my head as soon as I
  445. heard this new and unexpected sound.
  446.  
  447. Think Back is really nice.  I recommend it.
  448.  
  449. -Eric
  450.  
  451.  
  452.  
  453. - -------------------------
  454.  
  455. From: siegel@world.std.com (Rich Siegel)
  456. Subject: Nonsense! (Re: possible virus in Think Back.)
  457. Date: 22 Jan 92 04:51:52 GMT
  458. Organization: Symantec Language Products Group
  459.  
  460. In article <1992Jan21.212357.5736@cs.yale.edu> braun-eric@CS.YALE.EDU (Eric E. Braun) writes:
  461. >I have just downloaded Think Back from comp.binaries.mac (which is
  462. >really nifty for all you Think C folks out there, allows compilation
  463. >in the background) But then, unexpectedly I got a never heard before
  464. >sound: whoooeeep!  It occured as the result of no discernable action
  465. >as if it went off after a timeout.  Has anybody else experienced this?
  466. >(Otherwise my machine seems to be operating fine and SAM doesn't
  467. >detect any problems.)  I also downloaded the ToDo desk accessory so it
  468. >might also be at fault...
  469. >
  470.     A zebra!
  471.  
  472.     There is no sound code in THINK Back of any sort; it's more than
  473. likely that Easy Access has been triggered, or that your concurrently 
  474. downloaded DA is generating sounds.
  475.  
  476. It would be best to say "Strange THINK Back behavior" as a message title,
  477. rather than "possible virus in THINK Back", since the former asks a question,
  478. and the latter implicitly assaults the character of the author, which (in this
  479. case) is unwarranted.
  480.  
  481. R.
  482.  
  483.  
  484. -- 
  485. - ---------------------------------------------------------------------
  486. Rich Siegel                              Internet: siegel@world.std.com
  487. Senior Software Engineer                 Applelink: SIEGEL
  488. Symantec Languages Group
  489.  
  490.  
  491.  
  492. - -------------------------
  493.  
  494. From: time@ice.com (Tim Endres)
  495. Subject:  possible virus in Think Back.
  496. Date: 26 Jan 92 14:50:57 GMT
  497. Organization: ICE Engineering, Inc.
  498.  
  499.  
  500. In article <1992Jan21.212357.5736@cs.yale.edu> (comp.sys.mac.programmer), braun-eric@CS.YALE.EDU (Eric E. Braun) writes:
  501. > I have just downloaded Think Back from comp.binaries.mac (which is
  502. > really nifty for all you Think C folks out there, allows compilation
  503. > in the background) But then, unexpectedly I got a never heard before
  504. > sound: whoooeeep!  It occured as the result of no discernable action
  505. > as if it went off after a timeout.  Has anybody else experienced this?
  506. > (Otherwise my machine seems to be operating fine and SAM doesn't
  507. > detect any problems.)  I also downloaded the ToDo desk accessory so it
  508. > might also be!
  509.  
  510. FLAME ON
  511.  
  512. DAMN IT!!!!!!!!!!!!!!!!
  513. Will you people quit fucking anouncing "possible" viruses at the least
  514. unusual events.
  515.  
  516. If you are posting a "possible virus" message, you DAMN WELL BETTER
  517. have run some virus utilities first to see what they say, and do a
  518. little investigation.
  519.  
  520. FLAME OFF
  521.  
  522. Maybe the software put this in as feedback that you are "activated".
  523. Did you email the author and ask?
  524.  
  525. I am sorry, but this really flames my ass, since the whole topic is
  526. very sensitive and needs no further fanning from people "postulating".
  527. Especially on the net.
  528.  
  529. tim.
  530.  
  531.  
  532. Tim Endres -> time@ice.com -or- uupsi!tbomb!time
  533. ICE Engineering, 8840 Main Street, Whitmore Lake MI. 48189
  534. Voice (313) 449 8288 FAX (313) 449 9208
  535. - ------ USENET: A slow moving self parody..... ph
  536.  
  537.  
  538.  
  539. ---------------------------
  540.  
  541. From: davidp@calvin.usc.edu (David Peterson)
  542. Subject: How do you insert text into a TTEView?
  543. Date: 22 Jan 92 00:06:27 GMT
  544. Organization: University of Southern California, Los Angeles, CA
  545.  
  546.  
  547.  
  548. Hi all, I was wondering what the Approved Method was for inserting text that
  549. I'm recieving over the network into a TTEView (using MacApp 2.0.1 and C++).
  550.  
  551. Right now I'm doing this:
  552.  
  553.   theTEView->Focus();
  554.   TEInsert(buffer, length, theTEView->fHTE);    // Toolbox, not MacApp
  555.   theTEView->SynchView(true);
  556.  
  557. (being executed in the window's DoIdle() method)
  558.  
  559. which seems to work most of the time, but occasionally the machine will crash
  560. in SynchView() or other strange behavior (like TEditText fields moving to other
  561. locations in the window)
  562.  
  563. Also, TEInsert doesn't seem to check if the text handle is over 32k. Is this 
  564. something I need to worry about (IM wan't too clear on it)?
  565.  
  566. Thanks,
  567. -dave.
  568.  
  569.  
  570.  
  571. - -------------------------
  572.  
  573. From: ksand@apple.com (Kent Sandvik)
  574. Subject:  How do you insert text into a TTEView?
  575. Date: 24 Jan 92 20:12:54 GMT
  576. Organization: MacDTS Mongols
  577.  
  578. In article <knpdc3INNbe8@calvin.usc.edu>, davidp@calvin.usc.edu (David Peterson) writes:
  579. > Hi all, I was wondering what the Approved Method was for inserting text that
  580. > I'm recieving over the network into a TTEView (using MacApp 2.0.1 and C++).
  581. > Right now I'm doing this:
  582. >   theTEView->Focus();
  583. >   TEInsert(buffer, length, theTEView->fHTE);    // Toolbox, not MacApp
  584. >   theTEView->SynchView(true);
  585. > (being executed in the window's DoIdle() method)
  586. > which seems to work most of the time, but occasionally the machine will crash
  587. > in SynchView() or other strange behavior (like TEditText fields moving to other
  588. > locations in the window)
  589.  
  590. You shouldn't use the TE traps, instead make use of TTEView member functions;
  591. in this case StuffText.
  592.  
  593. > Also, TEInsert doesn't seem to check if the text handle is over 32k. Is this 
  594. > something I need to worry about (IM wan't too clear on it)?
  595.  
  596. TexEdit has the limitation of 32k text - and actually the TE record handling
  597. gets really sluggish with more than let us say 10k of text. The solution is
  598. to either write a better text editor module/class, or purchase SuperTEView from
  599. Sierra Software Innovations.
  600.  
  601.  
  602. Kent Sandvik - the perfect forgery of Kent Sandvik
  603. PS: Beware, this news entry is a forgery!
  604.  
  605.  
  606.  
  607. ---------------------------
  608.  
  609. From: bear@bucsf.bu.edu (Blair M. Burtan)
  610. Subject: MacApp 2.0 to 3.0 Docs
  611. Date: 22 Jan 92 00:17:05 GMT
  612. Organization: Boston U. College of Engineering
  613.  
  614. Does anyone know where I can find the documentation stating the
  615. differences between MacApp 2.0 and 3.0?  Is it on ETO #5 or did
  616. I subscribe too late?  If anyone has this info, please mail it to me.
  617. --
  618. +---------------------------------------+
  619. + "If it isn't Baroque, don't fix it."  +
  620. +               - Beauty and The Beast  +
  621. +                        +
  622. + Blair M. Burtan: bear@bucsf.bu.edu    +
  623. +                  bear@bu-pub.bu.edu   +
  624. +---------------------------------------+
  625.  
  626.  
  627.  
  628. - -------------------------
  629.  
  630. From: ksand@apple.com (Kent Sandvik)
  631. Subject:  MacApp 2.0 to 3.0 Docs
  632. Date: 23 Jan 92 19:20:58 GMT
  633. Organization: MacDTS Mongols
  634.  
  635. In article <BEAR.92Jan21191705@bucsf.bu.edu>, bear@bucsf.bu.edu (Blair M. Burtan) writes:
  636. > Does anyone know where I can find the documentation stating the
  637. > differences between MacApp 2.0 and 3.0?  Is it on ETO #5 or did
  638. > I subscribe too late?  If anyone has this info, please mail it to me.
  639.  
  640. I don't have ETO#5 here just now - but every beta release should
  641. have included an updated document with hints about how to
  642. upgrade from 2.0 to 3.0.
  643.  
  644. Kent
  645.  
  646.  
  647.  
  648. - -------------------------
  649.  
  650. From: sch@mitre.org (Stu Schaffner)
  651. Subject:  MacApp 2.0 to 3.0 Docs
  652. Date: 24 Jan 92 19:51:26 GMT
  653. Organization: MITRE Corp.
  654.  
  655. > In article <BEAR.92Jan21191705@bucsf.bu.edu>, bear@bucsf.bu.edu (Blair M. Burtan) writes:
  656. > > 
  657. > > Does anyone know where I can find the documentation stating the
  658. > > differences between MacApp 2.0 and 3.0?  Is it on ETO #5 or did
  659. > > I subscribe too late?  If anyone has this info, please mail it to me.
  660.  
  661. E.T.O. #5
  662.   Essentials
  663.     Documentation
  664.       MacApp Documentation
  665.         MacApp 3.0 Release Notes
  666.  
  667.  
  668. Stu Schaffner (not speaking for the)
  669. MITRE Corp.
  670. sch@mitre.org
  671.  
  672.  
  673.  
  674. ---------------------------
  675.  
  676. From: d88-jwa@hemul.nada.kth.se (Jon W{tte)
  677. Subject: Think C and register parameters
  678. Date: 21 Jan 92 23:01:51 GMT
  679. Organization: Royal Institute of Technology, Stockholm, Sweden
  680.  
  681.  
  682. (//#&%
  683.  
  684. Think C doesn't do diddley about functions declared with register
  685. parameters, even when "Honour register first" is checked. I have
  686. some very intensive code that loses BIG on that, according to
  687. the profiler (and according to an examination of the code)
  688.  
  689. I wish ANSI specified register parameters HAD to be passed in
  690. registers as far as possible, so I could call this a bug :-(
  691.  
  692. --
  693. This Signature is distributed under the conditions of the Signature License,
  694. available at a fee from   h+@nada.kth.se  (Jon W{tte)  Reading the Signature
  695. implies that you accept to be bound by the terms in said License. Should you
  696. not agree on any of these terms, you must return the Signature unread to me.
  697.  
  698.  
  699.  
  700. - -------------------------
  701.  
  702. From: gmarzot@mitre.org (G. S. Marzot (Joe))
  703. Subject:  Think C and register parameters
  704. Date: 22 Jan 92 14:27:44 GMT
  705. Organization: The MITRE Corporation
  706.  
  707. In article <D88-JWA.92Jan22000151@hemul.nada.kth.se> 
  708. d88-jwa@hemul.nada.kth.se (Jon W{tte) writes:
  709. > Think C doesn't do diddley about functions declared with register
  710. > parameters, even when "Honour register first" is checked. I have
  711. > some very intensive code that loses BIG on that, according to
  712. > the profiler (and according to an examination of the code)
  713. > I wish ANSI specified register parameters HAD to be passed in
  714. > registers as far as possible, so I could call this a bug :-(
  715.  
  716. Take a look at the #pragma parameter  directive in ThinkC 5.0.2
  717. Not sure this is totally ANSI but seems like it will do what you want.
  718. -GSM
  719.  
  720.  
  721. Email: gmarzot@linus.mitre.org
  722.  
  723. (standard  disclaimer)
  724.  
  725.  
  726.  
  727. - -------------------------
  728.  
  729. From: bx5x@vax5.cit.cornell.edu
  730. Subject:  Think C and register parameters
  731. Date: 22 Jan 92 16:59:52 GMT
  732. Organization: Cornell University
  733.  
  734. In article <D88-JWA.92Jan22000151@hemul.nada.kth.se>,
  735. d88-jwa@hemul.nada.kth.se (Jon W{tte) writes: 
  736. > Think C doesn't do diddley about functions declared with register
  737. > parameters, even when "Honour register first" is checked. I have
  738. > some very intensive code that loses BIG on that, according to
  739. > the profiler (and according to an examination of the code)
  740.  
  741. THINK C turns off a whole lot of optimizers, probably including the
  742. register keyword functionality, whenever you have inline assembly.
  743. I've seen this a lot, especially with CODE resources.  It seems that
  744. the SetupA4() and RestoreA4() functions are macros with inline assembly,
  745. instead of being inline function declarations.  If TC used the latter,
  746. the code would compile a lot smaller (hint, hint, Symantec).
  747.  
  748. This may or may not be the problem.  I've seen the register functionality
  749. work correctly, at least in TC 4, so I doubt it just ignores it.
  750. -- 
  751.  
  752. - -(0000000000000000000000000000000000000000000000000000000000000000000000)---
  753.  ()00   Dave "Rasferet" Blumenthal   <aka>   bx5x@vax5.cit.cornell.edu   00()
  754. Disclaimer:     | OK, everybody,   | When a hotel owner was asked why he threw
  755. I'm a student.  | stay in focus.   | some loud arrogant chess masters out of
  756. I can say what- |  -Rowlf the dog, | his lobby, he said, "There's nothing worse
  757. ever I want!    | The Muppet Movie | than chessnuts boasting in an open foyer."
  758. ______________________________________________________________________________
  759. If it works right the first time, the documentation is wrong.  - Me
  760. ______________________________________________________________________________
  761.       ** I'm a .sig virus.  Attach me to your .sig!  Help me spread!  **
  762.  
  763.  
  764.  
  765. - -------------------------
  766.  
  767. From: guelzow@brandonu.ca
  768. Subject:  Think C and register parameters
  769. Date: 22 Jan 92 17:59:34 GMT
  770. Organization: Brandon University, Brandon, Manitoba, Canada
  771.  
  772. In article <D88-JWA.92Jan22000151@hemul.nada.kth.se>, 
  773. d88-jwa@hemul.nada.kth.se (Jon W{tte) writes:
  774. > Think C doesn't do diddley about functions declared with register
  775. > parameters, even when "Honour register first" is checked. I have
  776. > some very intensive code that loses BIG on that, according to
  777. > the profiler (and according to an examination of the code)
  778. > I wish ANSI specified register parameters HAD to be passed in
  779. > registers as far as possible, so I could call this a bug :-(
  780. Just in case you didn't notice: Think C 5.0 allows to provide through a
  781. #pragma directive to specify that certain arguments should be passed
  782. by register. (I haven't used it nor can I check my manual in the moment,
  783. but I am definite about having read it.)
  784. - -----------------------------------------------------------------------------
  785. Andreas Guelzow  Dept. of Mathematics & Comp. Sc. Brandon University MB Canada
  786. Guelzow@BrandonU.Ca
  787.  
  788.  
  789.  
  790. - -------------------------
  791.  
  792. From: CXT105@psuvm.psu.edu (Christopher Tate)
  793. Subject:  Think C and register parameters
  794. Date: 24 Jan 92 00:25:04 GMT
  795. Organization: Penn State University
  796.  
  797. In article <1992Jan22.142744.17623@linus.mitre.org>, gmarzot@mitre.org (G. S.
  798. Marzot (Joe)) says:
  799. >
  800. >In article <D88-JWA.92Jan22000151@hemul.nada.kth.se>
  801. >d88-jwa@hemul.nada.kth.se (Jon W{tte) writes:
  802. >>
  803. >> Think C doesn't do diddley about functions declared with register
  804. >> parameters, even when "Honour register first" is checked. I have
  805. >> some very intensive code that loses BIG on that, according to
  806. >> the profiler (and according to an examination of the code)
  807. >>
  808. >> I wish ANSI specified register parameters HAD to be passed in
  809. >> registers as far as possible, so I could call this a bug :-(
  810. >
  811. >Take a look at the #pragma parameter  directive in ThinkC 5.0.2
  812. >Not sure this is totally ANSI but seems like it will do what you want.
  813. >-GSM
  814.  
  815. Sadly, this is not the case.  Quoting from the TC User Manual, page 194:
  816.  
  817.   "The pragma parameter directive
  818.    This directive applies to a subsequent inline function definition...."
  819.  
  820. and on the following page:
  821.  
  822.   "If the [function] definition is not an inline definition, never
  823.    defined, or already defined, the directive is ignored."
  824.  
  825. So, it looks like there really isn't any way at this time to pass
  826. function parameters in C as register variables.  Grrrrr.
  827.  
  828. - -----
  829. Christopher Tate                 |  Cryptogram #7:
  830. cxt105@psuvm.psu.edu             |
  831. CXT105@PSUVM.BITNET              |  Z XZG AYRPOVR LVTLPYTW
  832. - -------------------------------|  YL IYQW TYDPR.
  833. Send me the answer; I love mail! |
  834.  
  835.  
  836.  
  837. ---------------------------
  838.  
  839. From: d88-jwa@hemul.nada.kth.se (Jon W{tte)
  840. Subject: Apple Event suite for ARA ?
  841. Date: 21 Jan 92 23:03:18 GMT
  842. Organization: Royal Institute of Technology, Stockholm, Sweden
  843.  
  844.  
  845. Are there any Appletalk Remote Access Apple Events ? I'd be most
  846. interested in an event to Disconnect a session (remotely, of
  847. course !) short of quitting the application entirely.
  848.  
  849. --
  850. This Signature is distributed under the conditions of the Signature License,
  851. available at a fee from   h+@nada.kth.se  (Jon W{tte)  Reading the Signature
  852. implies that you accept to be bound by the terms in said License. Should you
  853. not agree on any of these terms, you must return the Signature unread to me.
  854.  
  855.  
  856.  
  857. - -------------------------
  858.  
  859. From: jpugh@apple.com (Jon Pugh)
  860. Subject:  Apple Event suite for ARA ?
  861. Date: 24 Jan 92 21:51:11 GMT
  862. Organization: Apple Co.
  863.  
  864. In article <D88-JWA.92Jan22000318@hemul.nada.kth.se>, d88-jwa@hemul.nada.kth.se (Jon W{tte) writes:
  865. > Are there any Appletalk Remote Access Apple Events ? I'd be most
  866. > interested in an event to Disconnect a session (remotely, of
  867. > course !) short of quitting the application entirely.
  868.  
  869. No one has told me about anything like this so I don't think it exists.  I 
  870. haven't spoken with any of the ARA guys.
  871.  
  872. Jon
  873. kAERegistrar
  874.  
  875.  
  876.  
  877. ---------------------------
  878.  
  879. From: d88-jwa@hemul.nada.kth.se (Jon W{tte)
  880. Subject: PBCatSearch to list folder ?
  881. Date: 21 Jan 92 23:05:20 GMT
  882. Organization: Royal Institute of Technology, Stockholm, Sweden
  883.  
  884.  
  885. How do you get PBCatSearch to list all files in a given folder ?
  886. Specifying ioDrPadID in the search records and the fsPadID flag
  887. does NOT give any matches.
  888.  
  889. --
  890. This Signature is distributed under the conditions of the Signature License,
  891. available at a fee from   h+@nada.kth.se  (Jon W{tte)  Reading the Signature
  892. implies that you accept to be bound by the terms in said License. Should you
  893. not agree on any of these terms, you must return the Signature unread to me.
  894.  
  895.  
  896.  
  897. - -------------------------
  898.  
  899. From: mxmora@unix.SRI.COM (Matt Mora)
  900. Subject:  PBCatSearch to list folder ?
  901. Date: 22 Jan 92 17:04:03 GMT
  902. Organization: SRI International, Menlo Park, CA
  903.  
  904. In article <D88-JWA.92Jan22000520@hemul.nada.kth.se> d88-jwa@hemul.nada.kth.se (Jon W{tte) writes:
  905.  
  906. >How do you get PBCatSearch to list all files in a given folder ?
  907. >Specifying ioDrPadID in the search records and the fsPadID flag
  908. >does NOT give any matches.
  909.  
  910. Why don't you give PBcatsearch a wide range of dates (maybe 0 to maxlonint)
  911. it will then find all the files in the specified folder becasue it falls
  912. within th edate range.
  913.  
  914. Matt
  915.  
  916. -- 
  917. ___________________________________________________________
  918. Matthew Mora                |   my Mac  Matt_Mora@sri.com
  919. SRI International           |  my unix  mxmora@unix.sri.com
  920. ___________________________________________________________
  921.  
  922.  
  923.  
  924. - -------------------------
  925.  
  926. From: d88-jwa@hemul.nada.kth.se (Jon W{tte)
  927. Subject:  PBCatSearch to list folder ?
  928. Date: 23 Jan 92 09:18:01 GMT
  929. Organization: Royal Institute of Technology, Stockholm, Sweden
  930.  
  931. > mxmora@unix.SRI.COM (Matt Mora) writes:
  932.  
  933.    Why don't you give PBcatsearch a wide range of dates (maybe 0 to maxlonint)
  934.    it will then find all the files in the specified folder becasue it falls
  935.    within th edate range.
  936.  
  937. But I don't search by date... I'll give it a try, though.
  938. It seems strange if you would have to specify additional constraints
  939. for the padID constraint to work ?
  940.  
  941. --
  942. This Signature is distributed under the conditions of the Signature License,
  943. available at a fee from   h+@nada.kth.se  (Jon W{tte)  Reading the Signature
  944. implies that you accept to be bound by the terms in said License. Should you
  945. not agree on any of these terms, you must return the Signature unread to me.
  946.  
  947.  
  948.  
  949. ---------------------------
  950.  
  951. From: eyes@cs.ubc.ca (Eye Care Centre)
  952. Subject: IcePick & ObjectMaster
  953. Date: 22 Jan 92 05:46:42 GMT
  954. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  955.  
  956. Does anyone know what the current status is of IcePick (a MacApp view editor
  957. written by Chris Arbogast that supports 3.0-style views) and ObjectMaster
  958. (an intelligent source code editor by Acius)? Are they available for public
  959. consumption yet? If so, how much do they cost and where can they be had?
  960.  
  961. Any information would be much appreciated!
  962.  
  963. Bill Kiss
  964. Programmer
  965. Dept. of Ophthalmology, UBC
  966.  
  967.  
  968.  
  969. - -------------------------
  970.  
  971. From: gmarzot@mitre.org (G. S. Marzot (Joe))
  972. Subject:  IcePick & ObjectMaster
  973. Date: 22 Jan 92 14:24:26 GMT
  974. Organization: The MITRE Corporation
  975.  
  976. In article <1992Jan22.054642.18293@cs.ubc.ca> eyes@cs.ubc.ca (Eye Care 
  977. Centre) writes:
  978. > Does anyone know what the current status is of IcePick (a MacApp view 
  979. editor
  980. > written by Chris Arbogast that supports 3.0-style views) and ObjectMaster
  981. > (an intelligent source code editor by Acius)? Are they available for 
  982. public
  983. > consumption yet? If so, how much do they cost and where can they be had?
  984. > Any information would be much appreciated!
  985. > Bill Kiss
  986. > Programmer
  987. > Dept. of Ophthalmology, UBC
  988.  
  989. according to our purchasing dept. Object Master(non-beta release) will hit 
  990. the streets in a week. Up un til now OM was available from ACIUS as a beta 
  991. release.
  992. No news on IcePick.
  993. GSM
  994.  
  995.  
  996. Email: gmarzot@linus.mitre.org
  997.  
  998. (standard  disclaimer)
  999.  
  1000.  
  1001.  
  1002. - -------------------------
  1003.  
  1004. From: mcmath@csb1.nlm.nih.gov (Chuck McMath)
  1005. Subject:  IcePick & ObjectMaster
  1006. Date: 23 Jan 92 13:12:40 GMT
  1007. Organization: MSD
  1008.  
  1009. In article <1992Jan22.054642.18293@cs.ubc.ca>, eyes@cs.ubc.ca (Eye Care Centre) writes:
  1010. > Does anyone know what the current status is of IcePick (a MacApp view editor
  1011. > written by Chris Arbogast that supports 3.0-style views) and ObjectMaster
  1012. > (an intelligent source code editor by Acius)? Are they available for public
  1013. > consumption yet? If so, how much do they cost and where can they be had?
  1014. > Any information would be much appreciated!
  1015. > Bill Kiss
  1016. > Programmer
  1017. > Dept. of Ophthalmology, UBC
  1018.  
  1019. IcePick is available from the MacApp Developer's Association (MADA).  Their
  1020. AppleLink and America Online address is MADA.  I believe that it's in the
  1021. neighborhood of $150 (by the way, if you don't belong to MADA it is well
  1022. worth it.  The publish a very good bimonthly magazine).
  1023.  
  1024. -- chuck mcmath
  1025.  
  1026.  
  1027.  
  1028. - -------------------------
  1029.  
  1030. From: ksand@apple.com (Kent Sandvik)
  1031. Subject:  IcePick & ObjectMaster
  1032. Date: 24 Jan 92 20:05:33 GMT
  1033. Organization: MacDTS Mongols
  1034.  
  1035. In article <1992Jan22.142426.17480@linus.mitre.org>, gmarzot@mitre.org (G. S. Marzot (Joe)) writes:
  1036. > In article <1992Jan22.054642.18293@cs.ubc.ca> eyes@cs.ubc.ca (Eye Care 
  1037. > Centre) writes:
  1038. > > Does anyone know what the current status is of IcePick (a MacApp view 
  1039. > editor
  1040. > > written by Chris Arbogast that supports 3.0-style views) and ObjectMaster
  1041. > > (an intelligent source code editor by Acius)? Are they available for 
  1042. > public
  1043. > > consumption yet? If so, how much do they cost and where can they be had?
  1044. > > 
  1045. > > Any information would be much appreciated!
  1046. > > 
  1047. > > Bill Kiss
  1048. > > Programmer
  1049. > > Dept. of Ophthalmology, UBC
  1050. > according to our purchasing dept. Object Master(non-beta release) will hit 
  1051. > the streets in a week. Up un til now OM was available from ACIUS as a beta 
  1052. > release.
  1053. > No news on IcePick.
  1054.  
  1055. IcePick final is available from APDA. The current version only supports
  1056. 2.0 views - but I'm using the ViewPromoter for 3.0 'Views' work. And
  1057. the company is working on a new release which will support the MacApp 3.0
  1058. 'View' format. 
  1059.  
  1060. Kent Sandvik
  1061. ..or actually a forgery of Kent...
  1062.  
  1063.  
  1064.  
  1065. - -------------------------
  1066.  
  1067. From: rickf@Apple.COM (Rick Fleischman)
  1068. Subject:  IcePick & ObjectMaster
  1069. Date: 24 Jan 92 22:33:49 GMT
  1070. Organization: Apple Computer Inc., Cupertino, CA
  1071.  
  1072. In article <19507@goofy.Apple.COM> ksand@apple.com (Kent Sandvik) writes:
  1073. >IcePick final is available from APDA. The current version only supports
  1074. >2.0 views - but I'm using the ViewPromoter for 3.0 'Views' work. And
  1075. >the company is working on a new release which will support the MacApp 3.0
  1076. >'View' format. 
  1077.  
  1078. Actually, IcePick is NOT yet available from APDA.  It IS currently available
  1079. from the MacApp Developer's Association (MADA).  You can reach MADA at
  1080. (206) 252-6946 or via e-mail at MADA@applelink.apple.com
  1081.  
  1082.  
  1083. Rick Fleischman
  1084. Developer Programs/APDA
  1085. Apple Computer, Inc.
  1086. e-mail: rickf@apple.com
  1087. AppleLink: FLEISCHMAN@applelink.apple.com
  1088.  
  1089.  
  1090.  
  1091. - -------------------------
  1092.  
  1093. From: ksand@apple.com (Kent Sandvik)
  1094. Subject:  IcePick & ObjectMaster
  1095. Date: 24 Jan 92 23:09:14 GMT
  1096. Organization: MacDTS Mongols
  1097.  
  1098. In article <19521@goofy.Apple.COM>, rickf@Apple.COM (Rick Fleischman) writes:
  1099.  
  1100. > In article <19507@goofy.Apple.COM> ksand@apple.com (Kent Sandvik) writes:
  1101. > >IcePick final is available from APDA. The current version only supports
  1102. > >2.0 views - but I'm using the ViewPromoter for 3.0 'Views' work. And
  1103. > >the company is working on a new release which will support the MacApp 3.0
  1104. > >'View' format. 
  1105.  
  1106. > Actually, IcePick is NOT yet available from APDA.  It IS currently available
  1107. > from the MacApp Developer's Association (MADA).  You can reach MADA at
  1108. > (206) 252-6946 or via e-mail at MADA@applelink.apple.com
  1109.  
  1110. Ouch, sorry, I did a mistake. I thought about MADA, and wrote 'APDA'. Mysterious
  1111. are the brain passages of Kent.
  1112.  
  1113. Anyway, I really recommend IcePick, it really makes a difference if you
  1114. are working a lot with MacApp views. Already the 'run-mode' is worth
  1115. the money (you could test your views/resources).
  1116.  
  1117. Kent Sandvik
  1118.  
  1119.  
  1120.  
  1121. ---------------------------
  1122.  
  1123. From: drc@coelho.COM (david r coelho)
  1124. Subject: emacs like editor?
  1125. Date: 22 Jan 92 07:17:21 GMT
  1126. Organization: Coelho Publications, Fremont, CA USA
  1127.  
  1128. Is there an editor available for the Mac that is reasonably close
  1129. to Emacs? Please respond via email and I'll post a summary of
  1130. the responses I get. Thanks...
  1131. -- 
  1132. david r. coelho                        email: drc@coelho.COM
  1133. coelho publications                           drc%coelho@uunet.uu.net
  1134. 43000 christy street                   voice: (510) 770-0875
  1135. fremont, ca 94538-3198                 fax:   (510) 770-0728
  1136.  
  1137.  
  1138.  
  1139. - -------------------------
  1140.  
  1141. From: drc@coelho.COM (david r coelho)
  1142. Subject:  emacs like editor?
  1143. Date: 23 Jan 92 07:33:05 GMT
  1144. Organization: Coelho Publications, Fremont, CA USA
  1145.  
  1146. Thanks to all who responded to my initial inquiry. Basically, everyone
  1147. recommended an editor call 'alpha' which is shareware available on
  1148. the following machines:
  1149.  
  1150.     sumex-aim
  1151.     titan.rice.edu
  1152.  
  1153. Thanks to the following people:
  1154.     andre@cs.pitt.edu
  1155.     uunet!cs.uoregon.edu!tamukha
  1156.     uunet!nada.kth.se!d88-jwa
  1157.     eriks@fenix.lin.foa.se
  1158.     ingemar@isy.liu.se
  1159. -- 
  1160. david r. coelho                        email: drc@coelho.COM
  1161. coelho publications                           drc%coelho@uunet.uu.net
  1162. 43000 christy street                   voice: (510) 770-0875
  1163. fremont, ca 94538-3198                 fax:   (510) 770-0728
  1164.  
  1165.  
  1166.  
  1167. ---------------------------
  1168.  
  1169. From: terjer@ifi.unit.no (Terje Rydland)
  1170. Subject: Think Pascal / Quadra
  1171. Date: 22 Jan 92 09:49:57 GMT
  1172. Organization: Ifi, University of Trondheim / AVH
  1173.  
  1174. A simple question:
  1175.  
  1176. How can I make Think Pascal work on a Quadra 700?
  1177.  
  1178. When I try to compile I get a thumbs down and 
  1179. "Your application zone is damaged. Proceed with caution"
  1180.  
  1181. When will Think Pascal work with a 68040?
  1182.  
  1183.  
  1184. Terje 
  1185.  
  1186.  
  1187.  
  1188. - -------------------------
  1189.  
  1190. From: siegel@world.std.com (Rich Siegel)
  1191. Subject:  Think Pascal / Quadra
  1192. Date: 22 Jan 92 18:39:56 GMT
  1193. Organization: Symantec Language Products Group
  1194.  
  1195. In article <1992Jan22.094957.6829@ugle.unit.no> terjer@ifi.unit.no (Terje Rydland) writes:
  1196. >A simple question:
  1197. >
  1198. >How can I make Think Pascal work on a Quadra 700?
  1199. >
  1200.     Update to version 4.0.1, the updater for which is widely available
  1201. at this time.
  1202.  
  1203. R.
  1204.  
  1205. -- 
  1206. - ---------------------------------------------------------------------
  1207. Rich Siegel                              Internet: siegel@world.std.com
  1208. Senior Software Engineer                 Applelink: SIEGEL
  1209. Symantec Languages Group
  1210.  
  1211.  
  1212.  
  1213. - -------------------------
  1214.  
  1215. From: steveh@tasman.cc.utas.edu.au (Steve Howell)
  1216. Subject:  Think Pascal / Quadra
  1217. Date: 23 Jan 92 03:02:26 GMT
  1218. Organization: University of Tasmania, Australia.
  1219.  
  1220. terjer@ifi.unit.no (Terje Rydland) writes:
  1221.  
  1222. >A simple question:
  1223.  
  1224. >How can I make Think Pascal work on a Quadra 700?
  1225.  
  1226. >When I try to compile I get a thumbs down and 
  1227. >"Your application zone is damaged. Proceed with caution"
  1228.  
  1229. >When will Think Pascal work with a 68040?
  1230.  
  1231.  
  1232. You need the "Think Pascal Updater", which updates version 4 to 4.0.1.
  1233. If you can't get hold of the updater, then put a {$I-} at the begining
  1234. of your program and do all the initialisation calls by hand (as
  1235. described in the manual), but omit the call to MaxApplZone.
  1236.  
  1237.  
  1238.  
  1239. - -------------------------
  1240.  
  1241. From: ralph@mso.anu.edu (Ralph Sutherland)
  1242. Subject:  Think Pascal / Quadra
  1243. Date: 23 Jan 92 05:54:20 GMT
  1244. Organization: Mt. Stromlo Observatory
  1245.  
  1246. THINK Pascal 4.0.1 works on a Quadra, The upgrader for 4.0->4.0.1
  1247. has been available on sumex-aim.stanford.edu in info-mac/lang since
  1248. ~16th Jan.  It is probably available on other ftp sites too.
  1249.  
  1250. hope this helps
  1251.     cheers
  1252.     ralph
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258. -- 
  1259. - -- Ralph S. Sutherland      Mount Stromlo & Siding Spring Observatories.
  1260. - -- ralph@madras.anu.edu.au  The Australian National University.
  1261. - -- rss100@csc2.anu.edu.au   --------------------------------------------
  1262.  
  1263.  
  1264.  
  1265. - -------------------------
  1266.  
  1267. From: Carl.Constantine@BCSystems.GOV.BC.CA
  1268. Subject:  Think Pascal / Quadra
  1269. Date: 23 Jan 92 23:27:58 GMT
  1270. Organization: BC Systems Corporation
  1271.  
  1272. In article <1992Jan22.094957.6829@ugle.unit.no>, terjer@ifi.unit.no (Terje Rydland) writes:
  1273. > A simple question:
  1274. > How can I make Think Pascal work on a Quadra 700?
  1275. > When I try to compile I get a thumbs down and 
  1276. > "Your application zone is damaged. Proceed with caution"
  1277. > When will Think Pascal work with a 68040?
  1278.  
  1279. Yes and no.  First try putting the quadra in no cache mode (through the control
  1280. panel) and reboot.  If you are still getting this problem, get the Pascal 4.0.1
  1281. and TCL 1.1.2 update from Sumex ftp [36.44.0.6] and update your pascal.  This
  1282. fixes many of the problems with the Quadra as well as all of the bugs reported
  1283. in the TCL for THINK C which were also in PASCAL.
  1284.  
  1285. -- 
  1286. Carl.Constantine@BCSystems.gov.bc.ca
  1287. British Columbia, Canada
  1288.  
  1289.  
  1290.  
  1291. - -------------------------
  1292.  
  1293. From: siegel@world.std.com (Rich Siegel)
  1294. Subject:  Think Pascal / Quadra
  1295. Date: 27 Jan 92 20:46:14 GMT
  1296. Organization: Symantec Language Products Group
  1297.  
  1298. In article <1992Jan24.072758.241@galaxy.bcsystems.gov.bc.ca> Carl.Constantine@BCSystems.GOV.BC.CA writes:
  1299. >> 
  1300. >> When will Think Pascal work with a 68040?
  1301.  
  1302. >Yes and no.  First try putting the quadra in no cache mode (through the
  1303. >control panel) and reboot. 
  1304.  
  1305. The problems with THINK Pascal and the Quadra are not related to the 68040
  1306. cache. For that reason, turning off the caches will merely slow your machine
  1307. down, but will not resolve any problems. The 4.0.1 updater, however, addresses
  1308. the problem (a change in the Memory Manager which broke THINK Pascal), and
  1309. it is essential for Quadra users to get this update.
  1310.  
  1311. R.
  1312.  
  1313.  
  1314. -- 
  1315. - ---------------------------------------------------------------------
  1316. Rich Siegel                              Internet: siegel@world.std.com
  1317. Senior Software Engineer                 Applelink: SIEGEL
  1318. Symantec Languages Group
  1319.  
  1320.  
  1321.  
  1322. - -------------------------
  1323.  
  1324. From: orpheus@reed.edu (P. Hawthorne)
  1325. Subject:  Think Pascal / Quadra
  1326. Date: 30 Jan 92 01:42:31 GMT
  1327. Organization: Reed College, Portland OR
  1328.  
  1329.  
  1330.       siegel@world.std.com (Rich Siegel) writes:
  1331. .... (a change in the Memory Manager which broke THINK Pascal) ....
  1332.  
  1333.       What change was this? Is it something that other apps are likely
  1334. to be broken by? 
  1335.  
  1336.       Theus
  1337.       orpheus@reed.edu
  1338.  
  1339. -- 
  1340.  
  1341.  
  1342.  
  1343. ---------------------------
  1344.  
  1345. From: tamukha@dogmatix.cs.uoregon.edu (Tanka R. Sunuwar)
  1346. Subject: SOLUTION- CDataFile ReadSome problem HELP!
  1347. Organization: University of Oregon Computer and Information Sciences Dept.
  1348. Date: Wed, 22 Jan 1992 13:54:40 GMT
  1349.  
  1350. Hi,
  1351. I wrote this a while ago.  Thank you Mark.
  1352.  
  1353. >I have been trying to write my Objects to disk and try to retrieve back.  I 
  1354. >am using CFile/CDataFile.  The same code used to work with TC 4.0.2 fine, but
  1355. >it doesn't work with 5.0-5.0.2, well just upgraded to 5.0.2 and I still seem to 
  1356. >have problem.
  1357. >
  1358. >Here is my sample code:
  1359.  
  1360. write stuff deleted here.
  1361. >CMyObject       *CKeyArray::ReadRecord(short filePos)
  1362. >{       Ptr p;
  1363. >
  1364. >                p = NewPtr(4);
  1365. >                itsDataFile->Open(fsRdWrPerm);
  1366. >                itsDataFile->SetMark((filePos-1)*4,1);
  1367. >                itsDataFile->ReadSome(p,4L);
  1368. >                itsDataFile->Close();
  1369. >                return ((CMyObject*)p);
  1370. >
  1371. >}
  1372.  
  1373. Thank you Mark (markw@LOCAL.wc.novell.com).  I tried to e-mail you but it kept
  1374. bauncing back.  The book you suggested (C++ Programming with MacApp) really 
  1375. worked. In stead of writing whole object to disk, I wrote only the stuff I need
  1376. (like instance variables) to disk.
  1377.  
  1378. -Tanka
  1379.  
  1380.  
  1381.  
  1382. - -------------------------
  1383.  
  1384. From: tamukha@dogmatix.cs.uoregon.edu (Tanka R. Sunuwar)
  1385. Subject: Solution:  CDataFile ReadSome problem HELP!
  1386. Organization: University of Oregon Computer and Information Sciences Dept.
  1387. Date: Wed, 22 Jan 1992 13:52:31 GMT
  1388.  
  1389. Hi,
  1390. I wrote this a while ago.  Thank you Mark.
  1391.  
  1392. >I have been trying to write my Objects to disk and try to retrieve back.  I 
  1393. >am using CFile/CDataFile.  The same code used to work with TC 4.0.2 fine, but
  1394. >it doesn't work with 5.0-5.0.2, well just upgraded to 5.0.2 and I still seem to 
  1395. >have problem.
  1396. >
  1397. >Here is my sample code:
  1398.  
  1399. write stuff deleted here.
  1400. >CMyObject       *CKeyArray::ReadRecord(short filePos)
  1401. >{       Ptr p;
  1402. >
  1403. >                p = NewPtr(4);
  1404. >                itsDataFile->Open(fsRdWrPerm);
  1405. >                itsDataFile->SetMark((filePos-1)*4,1);
  1406. >                itsDataFile->ReadSome(p,4L);
  1407. >                itsDataFile->Close();
  1408. >                return ((CMyObject*)p);
  1409. >
  1410. >}
  1411.  
  1412. Thank you Mark (markw@LOCAL.wc.novell.com).  I tried to e-mail you but it kept
  1413. bauncing back.  The book you suggested (C++ Programming with MacApp) really 
  1414. worked. In stead of writing whole object to disk, I wrote only the stuff I need
  1415. (like instance variables) to disk.
  1416.  
  1417. -Tanka
  1418.  
  1419.  
  1420.  
  1421. ---------------------------
  1422.  
  1423. From: satish@ldgo.columbia.edu (satish paranjpe)
  1424. Subject: Help needed with message passing between applications!!!
  1425. Date: 22 Jan 92 14:37:23 GMT
  1426. Organization: Lamont-Doherty Geological Observatory
  1427.  
  1428.  
  1429. Hi everybody,
  1430.     here is  scenario I want to implement. A user starts up an
  1431. application (APPL 1) and interacts with it. On receiving a particular
  1432. type of input the APPL 1 starts up another application Appln2. 
  1433. >From this point on the user input is transferred to the appln 2 by the
  1434. APPL 1 and Appln 2 sends back the response (some data) to APPL 1. This
  1435. is sent back by the APPL 1 to the user. 
  1436.  
  1437. I come from a unix world where I can implement this very easily by
  1438. spawning a process and communicating with message queues ..etc
  1439.  
  1440.  
  1441.                  ________           _______
  1442.                 |        |         |        |
  1443.                 |        |         |        |
  1444.          input  | APPL 1 |         |        |
  1445.   USER -------->|        |-------->|        |
  1446.                 |        |         | Appln 2|
  1447.                 |        |         |        |
  1448.                 |        |         |        |
  1449.                 |________|         |________|
  1450.  
  1451.  
  1452. Is this possible to implement?. Is there a better way to do it? Any
  1453. help is appreciated. Pointers to sample code would be great!!
  1454. Please  respond by email.
  1455.  
  1456.  
  1457. *********I have MAC II si (6.0.x), Think C ***************
  1458.  
  1459.  
  1460. Thanks a lot.
  1461.  
  1462. Satish
  1463. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  1464. <<<< satish@lamont.ldgo.columbia.edu <<<<
  1465. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  1466.  
  1467.  
  1468.  
  1469. - -------------------------
  1470.  
  1471. From: mcmath@csb1.nlm.nih.gov (Chuck McMath)
  1472. Subject:  Help needed with message passing between applications!!!
  1473. Date: 23 Jan 92 13:16:08 GMT
  1474. Organization: MSD
  1475.  
  1476. In article <1992Jan22.143723.5528@lamont.ldgo.columbia.edu>, satish@ldgo.columbia.edu (satish paranjpe) writes:
  1477. > Hi everybody,
  1478. >     here is  scenario I want to implement. A user starts up an
  1479. > application (APPL 1) and interacts with it. On receiving a particular
  1480. > type of input the APPL 1 starts up another application Appln2. 
  1481. > From this point on the user input is transferred to the appln 2 by the
  1482. > APPL 1 and Appln 2 sends back the response (some data) to APPL 1. This
  1483. > is sent back by the APPL 1 to the user. 
  1484. > I come from a unix world where I can implement this very easily by
  1485. > spawning a process and communicating with message queues ..etc
  1486. >                  ________           _______
  1487. >                 |        |         |        |
  1488. >                 |        |         |        |
  1489. >          input  | APPL 1 |         |        |
  1490. >   USER -------->|        |-------->|        |
  1491. >                 |        |         | Appln 2|
  1492. >                 |        |         |        |
  1493. >                 |        |         |        |
  1494. >                 |________|         |________|
  1495. >        ... more stuff deleted ...
  1496.  
  1497. You can do this by using some of the features of the PPC Toolbox, which is
  1498. described in Inside Macintosh volume 6.  It's only available under system 7
  1499. (right, everybody?).
  1500.  
  1501. There are a couple of different levels you can work on: AppleEvents, which
  1502. I'm sure you have read about, are high-level events which take care of a lot
  1503. of the work for you.  Alternatively, you can use low-level PPC calls if you
  1504. are writing both applications.
  1505.  
  1506. The PPC toolbox and AppleEvents are also described in Tony Meadow's book
  1507. _System 7 Revealed_ which gives a good overview of the new features that
  1508. System 7 provides Mac users.
  1509.  
  1510. Good luck!
  1511.  
  1512. -- chuck mcmath
  1513.  
  1514.  
  1515.  
  1516. - -------------------------
  1517.  
  1518. From: potts@itl.itd.umich.edu (Paul Potts)
  1519. Subject:  Help needed with message passing between applications!!!
  1520. Date: 23 Jan 92 16:02:29 GMT
  1521. Organization: Advanced Workstation Lab, University of Michigan
  1522.  
  1523. In article <1992Jan23.131608.1721@nlm.nih.gov> mcmath@csb1.nlm.nih.gov (Chuck McMath) writes:
  1524. >In article <1992Jan22.143723.5528@lamont.ldgo.columbia.edu>, satish@ldgo.columbia.edu (satish paranjpe) writes:
  1525. >> 
  1526. >> 
  1527. >> Hi everybody,
  1528. >>     here is  scenario I want to implement. A user starts up an
  1529. >> application (APPL 1) and interacts with it. On receiving a particular
  1530. >> type of input the APPL 1 starts up another application Appln2. 
  1531. >> From this point on the user input is transferred to the appln 2 by the
  1532. >> APPL 1 and Appln 2 sends back the response (some data) to APPL 1. This
  1533. >> is sent back by the APPL 1 to the user. 
  1534. >> 
  1535. >> I come from a unix world where I can implement this very easily by
  1536. >> spawning a process and communicating with message queues ..etc
  1537. >> 
  1538. >> 
  1539. >>                  ________           _______
  1540. >>                 |        |         |        |
  1541. >>                 |        |         |        |
  1542. >>          input  | APPL 1 |         |        |
  1543. >>   USER -------->|        |-------->|        |
  1544. >>                 |        |         | Appln 2|
  1545. >>                 |        |         |        |
  1546. >>                 |        |         |        |
  1547. >>                 |________|         |________|
  1548. >> 
  1549. >> 
  1550. >>        ... more stuff deleted ...
  1551. >
  1552. >You can do this by using some of the features of the PPC Toolbox, which is
  1553. >described in Inside Macintosh volume 6.  It's only available under system 7
  1554. >(right, everybody?).
  1555. >
  1556. >There are a couple of different levels you can work on: AppleEvents, which
  1557. >I'm sure you have read about, are high-level events which take care of a lot
  1558. >of the work for you.  Alternatively, you can use low-level PPC calls if you
  1559. >are writing both applications.
  1560. >
  1561. >The PPC toolbox and AppleEvents are also described in Tony Meadow's book
  1562. >_System 7 Revealed_ which gives a good overview of the new features that
  1563. >System 7 provides Mac users.
  1564. >
  1565. >Good luck!
  1566. >
  1567. >-- chuck mcmath
  1568.  
  1569. I am doing something similar with AppleEvents. There is sample code on the
  1570. developer's CD which will show you how to make an application seek out another
  1571. application, launch it, and then send it events. It's pretty easy to use,
  1572. and ports to THINK C with only very minor changes. I've also done it by using
  1573. the send-apple-event XCMD with a Hypercard front end. Hypercard can send
  1574. an appleEvent and receive the result in the form of a text string. This
  1575. makes it very easy to write a front end.
  1576.  
  1577. Take a look at this code... I can forward it if you like. If you want to
  1578. discuss this off of the newsgroup, e-mail me.
  1579. --
  1580.          -Paul Potts-potts@itl.itd.umich.edu- 
  1581. I! Hi'm a mtatng siugnaturei vir*ss. You cann~t reisth elping me  spre]d !
  1582.  
  1583.  
  1584.  
  1585. ---------------------------
  1586.  
  1587. End of C.S.M.P. Digest
  1588. **********************
  1589.